<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()	+ path + "/";
	request.setCharacterEncoding("UTF-8");
	response.setContentType("text/html;charset=UTF-8");
%>
<jsp:include page="changePwd.jsp" flush="true"/>
<script type="text/javascript">
	var ctx="<%=path%>"; 

</script>
<link rel="stylesheet" href="<%=path%>/css/glsmcx.css" type="text/css" />
<link rel="stylesheet" href="<%=path%>/css/upload.css" type="text/css" >
<script type="text/javascript" src="<%=path%>/js/controllers/supplierCtrl.js"></script>
<div class="glsmcxWrap">
	<div class="container-fluid">
		<div class="panel panel-default">
			<div class="panel-heading">
				<h3 class="panel-title">供应商列表</h3>
			</div> 
			<div class="panel-body clearfix">
				<form method="post" action="#" class="form-horizontal" role="form">
					<!-- 查询开始 -->
					<div class="form-group">
						<div class="col-lg-31 clearfix">							
						<label class="control-label labelPart">供应商名称：</label>
							<div class="colPart">
								<input type="text" class="input-sm form-control" id="supplierName" placeholder="供应商名称">
							</div>
						</div>				
						<div class="col-lg-31 clearfix">							
							<label class="control-label labelPart">启用状态：</label>							
							<div class="colPart">
								<select name="status">
									<option value="">请选择</option>
									<option value="1">启用</option>
									<option value="2">禁用</option>
								</select>
							</div> 						
						</div>  
						
						<!-- 审核状态，1待审核，2审核通过，3审核不通过 -->
						<div class="col-lg-31 clearfix">							
							<label class="control-label labelPart">审核状态：</label>							
							<div class="colPart">
								<select name="auditStatus">
									<option value="">请选择</option>
									<option value="1">待审核</option>
									<option value="2">审核通过</option>
									<option value="3">审核不通过</option>
								</select>
							</div> 						
						</div>  
						
						<div class="col-lg-34 more clearfix"> 	
							<div class="morePart"><span>更多筛选</span>&nbsp;</div>															
							<button type="button" class="searchBtn">查询</button>	
							<button type="button" class="clearBtn">清空</button>					
						</div>
						
						<div class="form-group distant"> 
						
							<!-- 结算周期，1当日结算，2周结、3十日结、4月结 -->
							<div class="col-lg-31 clearfix">							
								<label class="control-label labelPart">结算周期：</label>							
								<div class="colPart">
									<select name="paymentCycle">
										<option value="">请选择</option>
										<option value="1">当日结算</option>
										<option value="2">周结</option>
										<option value="3">十日结</option>
										<option value="4">月结</option>
									</select>
								</div> 						
							</div> 
						
							<div class="col-lg-52 time clearfix">
								<label class="control-label labelPart">注册时间：</label>
								<div class="input-daterange input-group start ">
									<input type="text" class="input input-sm form-control" id="date-start" placeholder="起始时间" readonly="readonly" /> 
									<span class="input-group-addon">至</span> 
									<input type="text" class="input input-sm form-control" id="date-end" placeholder="结束时间" readonly="readonly" />
								</div>
							</div>
						</div>
					</div>
					<!-- 查询结束 -->
					<ul class="clearfix listwork">
						<!-- <li data-target=".modal-add" data-toggle="modal" class="add clearfix"><i></i>增加</li> -->
						<!-- <li class="del delete-batch clearfix" id="deleteMany"><i></i>删除</li> -->
					</ul>
					<div class="table-responsive">
						<table class="table table-bordered check left">
							<thead>
								<tr>
									<!-- <th> 
										<div class="checkbox">
									    	<label><input type="checkbox" class="all" /></label>
									    </div>
									</th> -->
									<th>序号</th>
									<th>供应商名称</th> 
									<th>联系人</th>  
								    <th>联系电话</th>
								    <th>地址</th>
								    <th>公司属性</th>
								    <th>结算周期</th>
								    <th>当前状态</th>
								    <th>审核状态</th>  
								    <th>注册时间</th>
								    <th>备注</th> 
									<th>操作</th>
								</tr>
							</thead>
		
							<tbody id="dataBody">
								 
							</tbody>
						</table>
						
						<table class="table2excel table table-bordered hide">
						</table>
					</div>
				</form>
			</div>
		</div>
		<div class="clearfix pageBottom">	
			<div class="record-wrapper page" role="status" aria-live="polite">
				当前<span class="pageNo"> </span>/<span class="totalPages"> </span>页，每页
				<label class="inline">
					<select name="dataTable_length" 
						class="form-control input-sm setTableLength" aria-controls="dataTable">
						<option selected="selected" value="10">10</option>
						<option value="20">20</option>
						<option value="50">50</option>
						<option value="100">100</option>
						<option value="200">200</option>
						<option value="300">300</option>
						<option value="400">400</option>
						<option value="500">500</option>
						<option value="1000">1000</option>
				</select> 
				</label>&nbsp;条记录,共<span class="record-wrapper totalCount">0</span>条记录
			</div>
			<nav>
			<!-- 这里显示分页 -->
				<div id="Pagination" class="pagination"></div>
			</nav>
		</div>
			
	</div>
</div>

<!-- 编辑s -->
<div class="modal fade modal-sup-detail modal-edit" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content"> 
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">
					<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
				</button>
				<h4 id="myModalLabel">供应商信息修改</h4>
			</div>
			<div class="modal-body">
				<form class="form-horizontal" novalidate="novalidate" id="editSupplierForm">

				<div class="form-group">
					<div class="col-lg-61">
						<label class="col-sm-41 control-label">供应商名称：</label>
						<div class="col-sm-81">
							<input type="text" readonly="readonly" name="supplierName" class="form-control input-sm" placeholder="供应商名称">
						</div>
					</div>
					
					<div class="col-lg-61">
						<label class="col-sm-41 control-label">公司属性：</label>
						<div class="col-sm-81">
							<input type="text" readonly="readonly" class="companyAreaType form-control input-sm" placeholder="备注">
						</div>
					</div> 
					
				</div>  
				
				<div class="form-group">
					<div class="col-lg-61">
						<label class="col-sm-41 control-label">联系人：</label>
						<div class="col-sm-81">
							<input type="text" readonly="readonly"  name="contactName" class="form-control input-sm" placeholder="联系人">
						</div>
					</div>

					<div class="col-lg-61">
						<label class="col-sm-41 control-label">联系电话：</label>
						<div class="col-sm-81">
							<input type="text" readonly="readonly"  name="contactPhone" class="form-control input-sm" placeholder="联系电话">
						</div>
					</div>
				</div>  
				
				<div class="form-group">
					
					<div class="col-lg-61">
						<label class="col-sm-41 control-label">地址：</label>
						<div class="col-sm-81">
							<input type="text" name="address" class="form-control input-sm" placeholder="地址">
						</div>
					</div> 
					
					<div class="col-lg-61">
						<label class="col-sm-41 control-label">结算周期：</label>
						<div class="col-sm-81">
							<select name="paymentCycle">
								<option value="">请选择</option>
								<option value="1">当日结算</option>
								<option value="2">周结</option>
								<option value="3">十日结</option>
								<option value="4">月结</option>
							</select>
						</div>
					</div> 
					
				</div>   
				<input type="hidden"  name="id" /> 
			</form> 
			</div>
			<div class="modal-footer">
				<span  class="errorMsg red"></span> 
				<button type="button" class="btn btn-success" id="btn_edit">保存</button> 
				<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
			</div>	 
		</div>		
				
	</div>
			
</div>
<!-- 编辑e -->

	
<!-- 审核s -->
<div class="modal fade modal-sup-detail modal-add" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content"> 
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">
					<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
				</button>
				<h4 id="myModalLabel">供应商信息审核</h4>
			</div>
			<div class="modal-body">
				<form class="form-horizontal" novalidate="novalidate" id="auditSupplierForm">

				<div class="form-group">
					<div class="col-lg-61">
						<label class="col-sm-41 control-label">供应商名称：</label>
						<div class="col-sm-81">
							<input type="text" readonly="readonly" name="supplierName" class="form-control input-sm" placeholder="供应商名称">
						</div>
					</div>
					<div class="col-lg-61">
						<label class="col-sm-41 control-label">地址：</label>
						<div class="col-sm-81">
							<input type="text" readonly="readonly" name="address" class="form-control input-sm" placeholder="地址">
						</div>
					</div>
				</div>  
				
				<div class="form-group">
					<div class="col-lg-61">
						<label class="col-sm-41 control-label">联系人：</label>
						<div class="col-sm-81">
							<input type="text" readonly="readonly" name="contactName" class="form-control input-sm" placeholder="联系人">
						</div>
					</div>

					<div class="col-lg-61">
						<label class="col-sm-41 control-label">联系电话：</label>
						<div class="col-sm-81">
							<input type="text" readonly="readonly" name="contactPhone" class="form-control input-sm" placeholder="联系电话">
						</div>
					</div>
				</div>  
				
				<div class="form-group">
					<div class="col-lg-61">
						<label class="col-sm-41 control-label">公司属性：</label>
						<div class="col-sm-81">
							<input type="text" readonly="readonly" name="companyAreaType" class="form-control input-sm" placeholder="备注">
						</div>
					</div> 
					
					<div class="col-lg-61">
						<label class="col-sm-41 control-label">备注：</label>
						<div class="col-sm-81">
							<input type="text" readonly="readonly" name="remark" class="form-control input-sm" placeholder="备注">
						</div>
					</div> 
				</div> 
				
				<div class="form-group">
					<div class="col-lg-61">
						<label class="col-sm-41 control-label">法人身份证正面：</label>
						<div class="col-sm-81">
							<img alt="暂无图片" src="" id="id_card_front_img" width="200px" />
						</div>
					</div>  
					
					<div class="col-lg-61">
						<label class="col-sm-41 control-label">法人身份证反面：</label>
						<div class="col-sm-81">
							<img alt="暂无图片" src="" id="id_card_back_img" width="200px" />
						</div>
					</div>
				</div>   
					
				<div class="form-group companyAreaType2" >
					<div class="col-lg-61">
						<label class="col-sm-41 control-label">商业登记证：</label>
						<div class="col-sm-81">
							<img alt="暂无图片" src="" id="business_registration_img" width="200px" />
						</div>
					</div> 
					
					<div class="col-lg-61">
						<label class="col-sm-41 control-label">注册证明：</label>
						<div class="col-sm-81">
							<img alt="暂无图片" src="" id="registration_certificate_img" width="200px" />
						</div>
					</div> 
				</div>   
				
				<div class="form-group companyAreaType1">
					<div class="col-lg-61">
						<label class="col-sm-41 control-label">营业执照：</label>
						<div class="col-sm-81">
							<img alt="暂无图片" src="" id="business_license_img" width="200px" />
						</div>
					</div> 
				</div>  
				
				<div class="form-group">
					<div class="col-lg-61">
						<label class="col-sm-41 control-label">结算周期：</label>
						<div class="col-sm-81">
							<select name="paymentCycle">
								<option value="">请选择</option>
								<option value="1">当日结算</option>
								<option value="2">周结</option>
								<option value="3">十日结</option>
								<option value="4">月结</option>
							</select>
						</div>
					</div> 
				</div>
				
				<div class="form-group">
					<div class="col-sm-161">
						<label class="col-sm-41 control-label">审核意见：</label>
						<div class="colPart6 dropdown">	
							<input type="text" name="auditOpinion" class="input-sm form-control" placeholder="请输入审核意见">	 
						</div> 
					</div>
				</div>
				  
				<input type="hidden"  name="id" />
				<input type="hidden"  name="auditStatus" />
			</form> 
			</div>
			<div class="modal-footer">
				<span  class="errorMsg red"></span> 
				<button type="button" class="btn btn-success" id="btn_audit_pass">通过</button>
				<button type="button" class="btn btn-danger" id="btn_audit_notpass">不通过</button>
				<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
			</div>	 
		</div>		
				
	</div>
			
</div>
<!-- 审核e -->

<!-- 查看s -->
<div class="modal fade modal-sup-detail modal-detail" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content"> 
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">
					<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
				</button>
				<h4 id="myModalLabel">供应商信息详情</h4>
			</div>
			<div class="modal-body">
				<form class="form-horizontal" novalidate="novalidate" id="detailSupplierForm">

				<div class="form-group">
					<div class="col-lg-61">
						<label class="col-sm-41 control-label">供应商名称：</label>
						<div class="col-sm-81">
							<input type="text" readonly="readonly" name="supplierName" class="form-control input-sm" placeholder="供应商名称">
						</div>
					</div>
					<div class="col-lg-61">
						<label class="col-sm-41 control-label">地址：</label>
						<div class="col-sm-81">
							<input type="text" readonly="readonly" name="address" class="form-control input-sm" placeholder="地址">
						</div>
					</div>
				</div>  
				
				<div class="form-group">
					<div class="col-lg-61">
						<label class="col-sm-41 control-label">联系人：</label>
						<div class="col-sm-81">
							<input type="text" readonly="readonly" name="contactName" class="form-control input-sm" placeholder="联系人">
						</div>
					</div>

					<div class="col-lg-61">
						<label class="col-sm-41 control-label">联系电话：</label>
						<div class="col-sm-81">
							<input type="text" readonly="readonly" name="contactPhone" class="form-control input-sm" placeholder="联系电话">
						</div>
					</div>
				</div>  
				
				<div class="form-group">
					<div class="col-lg-61">
						<label class="col-sm-41 control-label">公司属性：</label>
						<div class="col-sm-81">
							<input type="text" readonly="readonly" name="companyAreaType" class="form-control input-sm" placeholder="备注">
						</div>
					</div> 
					
					<div class="col-lg-61">
						<label class="col-sm-41 control-label">备注：</label>
						<div class="col-sm-81">
							<input type="text" readonly="readonly" name="remark" class="form-control input-sm" placeholder="备注">
						</div>
					</div> 
				</div> 
				
				<div class="form-group">
					<div class="col-lg-61">
						<label class="col-sm-41 control-label">法人身份证正面：</label>
						<div class="col-sm-81">
							<img alt="暂无图片" src="" id="id_card_front_img_detail" width="200px" />
						</div>
					</div>  
					
					<div class="col-lg-61">
						<label class="col-sm-41 control-label">法人身份证反面：</label>
						<div class="col-sm-81">
							<img alt="暂无图片" src="" id="id_card_back_img_detail" width="200px" />
						</div>
					</div>
				</div>  
				 
					
				<div class="form-group companyAreaType2" >
					<div class="col-lg-61">
						<label class="col-sm-41 control-label">商业登记证：</label>
						<div class="col-sm-81">
							<img alt="暂无图片" src="" id="business_registration_img_detail" width="200px" />
						</div>
					</div> 
					
					<div class="col-lg-61">
						<label class="col-sm-41 control-label">注册证明：</label>
						<div class="col-sm-81">
							<img alt="暂无图片" src="" id="registration_certificate_img_detail" width="200px" />
						</div>
					</div> 
				</div>   
				
				<div class="form-group companyAreaType1">
					<div class="col-lg-61">
						<label class="col-sm-41 control-label">营业执照：</label>
						<div class="col-sm-81">
							<img alt="暂无图片" src="" id="business_license_img_detail" width="200px" />
						</div>
					</div> 
				</div>  
				
				<div class="form-group">
					<div class="col-sm-161">
						<label class="col-sm-41 control-label">审核意见：</label>
						<div class="colPart6 dropdown">	
							<input type="text" name="auditOpinion" class="input-sm form-control" readonly="readonly" placeholder="审核意见">	 
						</div> 
					</div>
				</div> 
			</form> 
			</div>
			<div class="modal-footer"> 
				<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
			</div>	 
		</div>	 
	</div>
			
</div>
<!-- 查看e -->